package edu.princeton.cogsci.wn.ascii;

/** This class wraps around the Index C struct, defined in the WordNet C
 *  library.
 */

class CIndex
{
    /** The word form. */
  String wd;
    /** The part of speech. */
  int pos;
    /** The count of senses. */
  int sense_cnt;
    /** The count of synset offsets (same as sense_cnt). */
  int off_cnt;
    /** The count of senses that have non-zero frequency. */
  int tagged_cnt;
    /** The synset offsets. */
  int[] offset;
    /** The count of relations used. */
  int ptruse_cnt;
    /** The relations used. */
  int[] ptruse;

  int idxoffset;

  static native CIndex lookup( String word, int pos );
  static native CIndex lookupByOffset( int pos, int offset );
}
